package com.keta.foundation.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.keta.foundation.entity.Role;
import com.keta.foundation.entity.User;
import com.keta.foundation.entity.UserRole;

public interface UserRoleDAO extends JpaRepository<UserRole, Long>, JpaSpecificationExecutor<UserRole> {
	List<UserRole> findByUserId(Long userId);

	List<UserRole> findByRoleId(Long roleId);
}
